// Author: wsfuyibing <682805@qq.com>
// Date: 2025-06-24

package consume

import (
	"context"
	"gitee.com/go-libs/db-xorm/db"
	"server/app/kind"
	"server/app/lib/user_balance/operations"
	"sync"
)

var (
	once     = new(sync.Once)
	operator *Operator
)

// Operator
// 消费余额.
//
// 将冻结的余额消费掉, 从账户余中彻底扣除.
type Operator struct {
	operations.Operations
}

// New
// 获取单例.
func New() *Operator { return operator }

// Run
// 执行逻辑.
func (o *Operator) Run(ctx context.Context, sess *db.Session, uid kind.UserId) {}

func init() {
	once.Do(func() {
		operator = &Operator{}
	})
}
